package cn.gene.timeyan.common.exception;

import cn.gene.timeyan.common.restful.ResponseCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常*
 *
 * @author LWG
 * @date 2022/7/21 19:37
 * @since 1.0.0@gene.cn
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TimeyanServiceException extends RuntimeException {

    private ResponseCode responseCode;

    public TimeyanServiceException(ResponseCode responseCode, String message) {
        super(message);
        setResponseCode(responseCode);
    }

}
